import React from "react";
import { Space } from "antd";

const IconText = ({ icon, text }: { icon: any; text: string | number }) => (
    <Space>
        {React.createElement(icon)}
        {text}
    </Space>
);

export default IconText;
